// 封装与楼宇相关的函数
import request from '@/utils/request'
export function getBuildingListAPI(obj) {
  return request({
    url: '/park/building',
    method:'GET',
    params: obj
  })
}

/**
 * 添加楼宇
 * @param {*} data
 * @returns
 */
export function addBuildingAPI(obj) {
  return request({
    url: '/park/building',
    method: 'POST',
    data: obj
  })
}

/**
 * 删除楼宇
 * @param {*} data
 * @returns
 */
export function delBuildingAPI(id) {
  return request({
    url: '/park/building/' + id,
    method: 'DELETE'
  })
}

export function editBuildingAPI(obj){
  return request({
    url: '/park/building',
    method: 'PUT',
    data: obj
  })
}

